package org.smile.orm.ddl;

import org.smile.db.meta.TableMetaInfo;
import org.smile.db.meta.TableMetaUtil;
import org.smile.orm.mapping.OrmTableMapping;

import java.sql.SQLException;
import java.util.Collection;

public abstract class AbstractAutoDdl implements AutoDdl{
    TableMetaUtil util;

    @Override
    public void execute(Collection<OrmTableMapping> tableMappings) throws SQLException {
        for(OrmTableMapping mapping:tableMappings){
            String tableName = mapping.getName();
            //先判断是否已经存在数据表
           TableMetaInfo tableInfo= util.getTableMetaInfo(tableName);

        }
    }


    protected TableMetaInfo convertToMetaInfo(OrmTableMapping mapping){
        return null;
    }
}
